package com.dididoctor.doctor.Activity.PatientDetial;

import android.content.Context;
import android.widget.TextView;

import com.dididoctor.doctor.MV.adapter.CommonAdapter;
import com.dididoctor.doctor.MV.adapter.ViewHolder;
import com.dididoctor.doctor.R;

import java.util.List;


/**
 * @version 2.0
 * @类描述：问诊表
 * @项目名称：ddgh
 * @类名称： CasesDetailDialogAdapter
 * @包名称： com.dididoctor.patient.Activity.Usercentre.Record.Cases.CasesDetail
 * @创建人： zhanjunjie
 * @创建时间：2016/4/15 15:23
 * @修改人：
 * @修改时间：2016/4/15 15:23
 * @修改备注： new parent class(用一句话描述修改了什么)
 */
public class CasesDetailDialogAdapter extends CommonAdapter<QuslistBean> {

    private TextView mTvQuestion, mTvAnswer;

    public CasesDetailDialogAdapter(Context context, List<QuslistBean> datas) {
        super(context, datas, R.layout.item_case_dialog);
    }

    @Override
    public void convert(int position, ViewHolder helper, QuslistBean item) {
        mTvQuestion = helper.getView(R.id.tv_question);
        mTvAnswer = helper.getView(R.id.tv_answer);
        mTvQuestion.setText(item.getContent());
        mTvAnswer.setText(item.getAnswer());
    }
}
